Use g_autoptr(GKeyFile) instead of gs_unref_keyfile
authorMatthew Barnes <mbarnes@redhat.com>
Tue, 5 May 2015 15:47:07 +0000 (11:47 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Thu, 7 May 2015 02:07:10 +0000 (22:07 -0400)
src/ostree/ot-admin-builtin-set-origin.c

index 24a919fdc9687f5f42e73170e7410c5af0c44f3d..9e140bf0fe05cd92c75d815c259e674311eb91ea 100644 (file)
@@ -129,7 +129,7 @@ ot_admin_builtin_set_origin (int argc, char **argv, GCancellable *cancellable, G
       goto out;
 
     { g_autofree char *new_refspec = g_strconcat (remotename, ":", branch ? branch : origin_ref, NULL);
-      gs_unref_keyfile GKeyFile *new_origin = NULL;
+      g_autoptr(GKeyFile) new_origin = NULL;
       g_autoptr(GFile) origin_path = NULL;
       
       new_origin = ostree_sysroot_origin_new_from_refspec (sysroot, new_refspec);